bitkeeper revision 1.1512 (4291e819kp5stS-T-KsgGXWV2Tvfow)
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 23 May 2005 14:26:33 +0000 (14:26 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 23 May 2005 14:26:33 +0000 (14:26 +0000)
XendDomain.py:
  Get sizeof right.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/python/xen/xend/XendDomain.py

index 08a494b00f3966a715b6c0ce784e2785b18ef223..d45a3547df188cd15b0f0e0f121c87a3230ba624 100644 (file)
@@ -322,8 +322,8 @@ class XendDomain:
         """
 
         SIGNATURE = "LinuxGuestRecord"
-        sizeof_int = calcsize("L")
-        sizeof_unsigned_long = calcsize("i")
+        sizeof_int = calcsize("i")
+        sizeof_unsigned_long = calcsize("L")
         PAGE_SIZE = 4096
 
         class XendFile(file):